package DemolinkedList;

public class Test {
    public static void main(String[] args) {
        MySingleLinkedList mySingleLinkedList = new MySingleLinkedList();
        mySingleLinkedList.addLast(1);
        mySingleLinkedList.addLast(1);
        mySingleLinkedList.addLast(1);
        mySingleLinkedList.addLast(6);
        mySingleLinkedList.addLast(7);
        mySingleLinkedList.addFirst(2);
        mySingleLinkedList.addFirst(3);
        //mySingleLinkedList.addIndex(2,2222);
        mySingleLinkedList.display();
        mySingleLinkedList.removeAllKey(1);
        mySingleLinkedList.display();
        mySingleLinkedList.clear();
        mySingleLinkedList.display();
    }
}
